package com.cg.controller;

import com.cg.service.impl.MessageServiceImpl;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName TestController
 * @Description TODO
 * @Author CG
 * @Date 2023/12/13 11:09
 **/
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private MessageServiceImpl messageServiceImpl;

    @GetMapping("/send")
    public String sendMessage(String message){
        return messageServiceImpl.sendMessage(message);
    }
}
